import { EntitySchema } from '@mikro-orm/core';

export class ImsYzdKpH5Config {
  id!: number;
  uniacid!: number;
  isWxpay!: boolean;
  wxpayId?: number;
  isAlipay!: boolean;
  alipayId?: number;
}

export const ImsYzdKpH5ConfigSchema = new EntitySchema({
  class: ImsYzdKpH5Config,
  tableName: 'ims_yzd_kp_h5_config',
  properties: {
    id: { primary: true, type: 'number' },
    uniacid: { type: 'number', index: 'uniacid' },
    isWxpay: { type: 'boolean' },
    wxpayId: { type: 'number', nullable: true },
    isAlipay: { type: 'boolean' },
    alipayId: { type: 'number', nullable: true },
  },
});
